/**
 * 
 */
package com.ly.hotel.msgevent;

/**
 * @author jouson
 * 2014-7-9
 */
public class NetworkEvent {
	public static final int UNKNOW = 0;
	//无线网
	public static final int WIFI = 1;
	//有线网
	public static final int ETH = 2;
	//网络是否通
	private boolean ok;
	//网络类型，通之后，不通为0
	private int type;
	
	public NetworkEvent(boolean ok, int type) {
		this.ok = ok;
		this.type = type;
	}
	

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public boolean isOk() {
		return ok;
	}

	public void setOk(boolean ok) {
		this.ok = ok;
	}
	
}
